<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %><%--
  Created by IntelliJ IDEA.
  User: 迷路的麋鹿
  Date: 2018/4/22
  Time: 11:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <form action="UserServlet" method="post">
        用户id:<input type="text" name="userId">
        密码：<input type="password" name="password">
        <input type="submit" value="登录">
    </form>
    <%
        request.setCharacterEncoding("utf-8");
        List<String> info= (List<String>) request.getAttribute("info");
        if (info!=null){
        Iterator<String> iterator=info.iterator();
        while (iterator.hasNext()){
    %>
    <%=iterator.next()%>
    <%
        }}
    %>
</body>
</html>
